if(res.code === 200){
    /*res.data =  {
            "uid": "696443691", 
            "cellphone": "13717628483", 
            "utype": "0"
        }
     */
    alert('登录成功');
    sessionStorage.setItem('userInfo',res.data);
    // 跳转
}


// 以后操作拦截判断
router.beforeEach((to, from, next) => {
    if(to.path === '/login'){//我想去登录页
        next();//去吧
    }else{
        if(sessionStorage.userInfo){//登录了吗？
            next();//去吧
        }else{
            next({path: '/login'}); //去登录

        }
    }
    
})